package service;

import java.util.List;

import entity.Top;

public interface TopService {
	/**
	* Title: TopDao 排行榜
	* Description:Top排行榜
	* @author 毛立新
	 */
	public List<Top> getToplist() throws Exception;

	/**
	 * Title: showByemail
	 * Description:按email查询所背单词个数
	 * @author 毛立新
	 */
	public Long getcntByemail(String email) throws Exception;
	/**
     * Title: showBybooktype
     * Description:查询所背诵书籍单词总数
     * @author 毛立新
     */
    public Long getcntBybook(String email) throws Exception;
    /**
     * Title: finish
     * Description:完成度的计算
     * @author 毛立新
     */
    public Double getFinish(String email) throws Exception;
 
    /**
     * Title: newToplist
     * Description:排行榜的生成
     * @author 毛立新
     * @return
     * @throws Exception
     */
	public List<Top> newToplist() throws Exception;
	/**
	 * Title: ClearTop
	 * Description:清空排行榜
	 * @author 毛立新
	 * @param email
	 * @throws Exception
	 */
	public void ClearTop(String email) throws Exception;
	/**
	 * Title: updateTop
	 * Description:添加信息记录
	 * @author 毛立新
	 * @param email
	 * @return
	 * @throws Exception
	 */
	public int updateTop(String email) throws Exception;
	/**
	 * Title: Getuseremail
	 * Description:从record获得用户email
	 * @author 毛立新
	 * @throws Exception
	 */
	public List<String> Getuseremail()throws Exception;
	/**
	 * Title: GetTop
	 * Description:获得email后向Top表输入信息
	 * @author 毛立新
	 * @return
	 * @throws Exception
	 */
	public List<Top> GetTop()throws Exception;
	
	
	
	

}
